# @Version : 1.0
# @Author  : 刘宇
# @File    : 36_homework01.py
# @Time    : 2025/10/8 16:29

money = 100000
count = 0
while True:
    if money > 50000:
        count += 1
        money = money - money * 0.05
    elif 1000 <= money <= 50000:
        count += 1
        money -= 1000
    else:
        break

print(f"该人可以经过{count}次路口，剩余的钱为{money}元")
